 <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
 
<script type="text/javascript">
var mlddm_shiftx       = 3;       // horizontal submenu shifting (in pixels)
var mlddm_shifty       = -3;      // vertical submenu shifting (in pixels)	
var mlddm_timeout      = 500;     // delay before closing (in milliseconds)
var mlddm_effect       = 'fade'; // specifies the visual effect for submenus (can be 'none', fade', 'slide')
var mlddm_effect_speed = 150;     // specifies the visual effect speed
var mlddm_orientation  = 'h';     // specifies the horizontal or vertical orientation (can be 'h' or 'v')
var mlddm_direction    = 1;       // on/off automatic submenus direction (submenus on left side when not enough right space) (can be 1 or 0)
var mlddm_delay        = 25;      // delay before first menu opening (in milliseconds). Useful to prevent accidental hovers
var mlddm_highlight    = 1;       // keep 'hover' pseudo class style on the parent active items. (can be 1 or 0)
var mlddm_closeonclick = 1;       // closing menu when onclick event happens. (can be 1 or 0)
</script>

<ul class="mlddm" style="float:left;">
	
	
	
	<li><a href="${pageContext.request.contextPath}/">Home</a></li>
	
	<sec:authorize  access="hasRole('ROLE_COMPANY_USER')" >
	
	<li><a href="#">Inbox</a>
		<ul>
			<li><a href="${pageContext.request.contextPath}/pages/inbox/inbox.xhtml?init=true">View Inbox</a></li>
		</ul>
	</li>

	<li><a href="#">Outbox</a>
		<ul>
			<li><a href="${pageContext.request.contextPath}/pages/outbox/send.xhtml?init=true">Upload New File</a></li>
			<li><a href="${pageContext.request.contextPath}/pages/outbox/sent.xhtml?init=true">View Sent Files</a></li>
		</ul>
	</li>
	
	</sec:authorize>
	
	<sec:authorize  access="hasRole('ROLE_ADMIN')" >
	<li><a href="#">Administration</a>
		<ul>
			<li><a href="${pageContext.request.contextPath}/pages/admin/companies/create.xhtml?init=true">Create Companies</a></li>
			<li><a href="${pageContext.request.contextPath}/pages/admin/companies/viewall.xhtml?init=true">Define Meta Fields for a Company</a></li>
		</ul>
	</li>
	</sec:authorize>
	
	<sec:authorize  access="hasRole('ROLE_ADMIN')" >
	
	<li><a href="#">Reports</a>
		<ul>
			<li><a href="#" class="hsub">Reports Option 1</a>
				<ul>
					<li><a href="#">Option 1a</a></li>
					<li><a href="#">Option 1b</a></li>
				</ul>
			</li>
			<li><a href="#">Reports Option 2</a></li>
			<li><a href="#">Reports Option 3</a></li>
		</ul>
	</li>
	
	<li><a href="#">Logs</a>
		<ul>
			<li><a href="#">Logs Option 1</a></li>
			<li><a href="#">Logs Option 2</a></li>
			<li><a href="#">Logs Option 3</a></li>
		</ul>
	</li>
	
	</sec:authorize>
</ul>
